
<%@ page import="com.memora.seguranca.SegUser" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'segUser.label', default: 'SegUser')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>

		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>
				<g:message code="default.list.label" args="[entityName]" />
				<!--small>Control panel</small-->
				<small>Control Panel</small>
				
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
				<li class="active">Blank page</li>
			</ol>
		</section>

		<!-- Main content -->
		<section class="content">
			<g:if test="${flash.message}">
				<div class="message" role="status">${flash.message}</div>
			</g:if>

			<table class="table table-striped">
				<thead>
					<tr>
					
						<g:sortableColumn property="username" title="${message(code: 'segUser.username.label', default: 'Username')}" />
					
						<g:sortableColumn property="password" title="${message(code: 'segUser.password.label', default: 'Password')}" />
					
						<g:sortableColumn property="accountExpired" title="${message(code: 'segUser.accountExpired.label', default: 'Account Expired')}" />
					
						<g:sortableColumn property="accountLocked" title="${message(code: 'segUser.accountLocked.label', default: 'Account Locked')}" />
					
						<g:sortableColumn property="enabled" title="${message(code: 'segUser.enabled.label', default: 'Enabled')}" />
					
						<g:sortableColumn property="nome" title="${message(code: 'segUser.nome.label', default: 'Nome')}" />
					
					</tr>
				</thead>
				<tbody>
					<g:each in="${segUserInstanceList}" status="i" var="segUserInstance">
						<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
						
							<td><g:link action="show" id="${segUserInstance.id}">${fieldValue(bean: segUserInstance, field: "username")}</g:link></td>
						
							<td>${fieldValue(bean: segUserInstance, field: "password")}</td>
						
							<td><g:formatBoolean boolean="${segUserInstance.accountExpired}" /></td>
						
							<td><g:formatBoolean boolean="${segUserInstance.accountLocked}" /></td>
						
							<td><g:formatBoolean boolean="${segUserInstance.enabled}" /></td>
						
							<td>${fieldValue(bean: segUserInstance, field: "nome")}</td>
						
						</tr>
					</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${segUserInstanceCount ?: 0}" />
			</div>
		</section>

	</body>
</html>
